pick

fun pick(x: Double, y: Double): PickedObjectList

Determines the WorldWind objects displayed at a screen point. The screen point is interpreted as coordinates in Swing screen pixels relative to this view.
If the screen point intersects any number of WorldWind shapes, the returned list contains a picked object identifying the top shape at the screen point. This picked object includes the shape renderable (or its non-null pick delegate) and the WorldWind layer that displayed the shape. Shapes that are hidden behind another shape or terrain at the screen point are omitted from the returned list.
If the screen point intersects the WorldWind terrain, the returned list contains a picked object identifying the associated geographic position. If there are no shapes in the WorldWind scene between the terrain and the screen point, the terrain picked object is marked as "on top".

Return

a list of WorldWind objects at the screen point

Parameters

x

the screen point's X coordinate in GL viewport pixels

y

the screen point's Y coordinate in GL viewport pixels